/*
 * test-window.cpp
 *
 *  Created on: Mar 15, 2015
 *      Author: moje
 */

#include <iostream>

#include "test-window.h"

TestWindow::TestWindow()
 : start("Start"), stop("Stop"), widget()
{
    set_title("Metronome GUI Test");

    add(vbox);

    vbox.pack_start(buttons);
    buttons.pack_start(start);
    buttons.pack_start(stop);
    vbox.pack_start(widget);

    // Handle the 'click' event.
    start.signal_clicked().connect(
        sigc::mem_fun(*this, &TestWindow::on_button_clicked));

    // Display all the child widgets of the window.
    show_all_children();
}

void TestWindow::on_button_clicked()
{
    std::cout << "Hello world" << std::endl;
}


